package com.yh.patterns.combination.demo1;

/**
 * @Auther:云尚学Java
 * 行政办公室
 */

public class AdOffice extends Component {

    private String name;
    public void receiveDoc() {
        System.out.println("行政办公室收到文件");
    }

    public AdOffice(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
